$(document).ready(function () {
    $('.iconSearch').click(function () {
        $('.order_filter').toggle();
    })


    $("#datetime1").datetimepicker({
        format: 'YYYY-MM-DD hh:mm',
        locale: moment.locale('zh-cn')
    });

    $("#datetime2").datetimepicker({
        format: 'YYYY-MM-DD hh:mm',
        locale: moment.locale('zh-cn')
    });

    $('.sharehouseCustomer').click(function () {
        $('.customerName').show();
    })

    $('.orderStateBox .orderStateOrder').click(function () {
        $('.orderStateOrder').removeClass('Oactive')
        $(this).addClass('Oactive')
    })

    $('#sex').on('change',function () {
        var selectId = $('#sex option:selected');
        if (selectId.val() == 1){
            window.open('sharehouse.html')
        } else {
            window.open('shareSaleRecord.html')
        }
    })

})

function shows(a) {
    $('.buttonText').text(a);
}

function showed(a) {
    $('.buttonTexted').text(a);
}
function orderStateTophide() {
    $('.customerName').hide();
}
